﻿using SLS.ExClassLib.MultiThreading;
using SLS.ExClassLib.MultiThreading.Threading.ThreadPools;
namespace SLS.ExClassLib.HLASimulation.Federation
{
    public class ResourceBase 
    {
        private readonly object _locker = new object();
        public string ResourceKey; 
        public ExtendedThreadPool ResourceThread;
        public ResourceBase()
        { 
        }
        public void NewResource(string resourceKey)
        {
            this.ResourceKey = resourceKey;
            ResourceThread = new ExtendedThreadPool(1, 1, MultiThreadingCapacityType.Global);
            ServiceContainer.BuildUp(ResourceThread);
        }  
    }
}
